package com.imcode.setdemo;

import java.util.HashSet;
import java.util.Set;

public class HashSetDemo02 {
    public static void main(String[] args) {
        Set<Member> set = new HashSet<>();
        Member m1 = new Member("张三");
        Member m2 = new Member("李四");
        Member m3 = new Member("王五");
        Member m4 = new Member("李四");
        set.add(m1);
        set.add(m2);
        set.add(m3);
        set.add(m4);
        System.out.println(set);

    }
}
